﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameServer
{
    private static GameServer _instance;

    public static GameServer getSingleton()
    {
        if (_instance == null)
        {
            _instance = new GameServer();
        }
        return _instance;
    }

    private GameServer()
    {
        score = 0;
        maxscore = 0;
        ismute = false;
    }

    public void SetMaxScore()
    {
        if (score > maxscore)
        {
            maxscore = score;
        }
    }

    public void reset()
    {
        score = 0;
    }

    public int score;
    public int maxscore;
    public bool ismute;
}
